package com.ruoyi.system.domain;

import java.math.BigDecimal;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品信息对象 pms_product
 *
 * @author ruoyi
 * @date 2024-11-11
 */
@Data
public class PmsProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long productId;

    /** 批次id */
    @Excel(name = "批次id")
    private Long batchId;

    /** 类别id */
    @Excel(name = "类别id")
    private Long categoryId;

    /** 商品编码 */
    @Excel(name = "商品编码")
    private String outProductId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 主图 */
    @Excel(name = "主图")
    private String pic;

    /** 画册图片，连产品图片限制为5张，以逗号分割 */
    @Excel(name = "画册图片，连产品图片限制为5张，以逗号分割")
    private String albumPics;

    /** 上架状态：0->下架；1->上架 */
    @Excel(name = "上架状态：0->下架；1->上架")
    private Long publishStatus;

    /** 排序 */
    @Excel(name = "序号")
    private Long sort;

    /** 价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /**原价 */
    @Excel(name = "商品原价")
    private BigDecimal originalPrice;


    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 商品重量，默认为克 */
    @Excel(name = "商品重量，默认为克")
    private BigDecimal weight;

    /** 产品详情网页内容 */
    @Excel(name = "产品详情网页内容")
    private String detailHtml;

    /** 移动端网页详情 */
    @Excel(name = "移动端网页详情")
    private String detailMobileHtml;

    /** 品牌名称 */
    @Excel(name = "品牌名称")
    private String brandName;

    /** 商品分类名称 */
    @Excel(name = "商品分类")
    private String productCategoryName;

    /** 商品销售属性，json格式 */
    @Excel(name = "商品销售属性，json格式")
    private String productAttr;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("batchId", getBatchId())
            .append("categoryId", getCategoryId())
            .append("outProductId", getOutProductId())
            .append("productName", getProductName())
            .append("pic", getPic())
            .append("albumPics", getAlbumPics())
            .append("publishStatus", getPublishStatus())
            .append("sort", getSort())
            .append("price", getPrice())
            .append("unit", getUnit())
            .append("weight", getWeight())
            .append("detailHtml", getDetailHtml())
            .append("detailMobileHtml", getDetailMobileHtml())
            .append("brandName", getBrandName())
            .append("productCategoryName", getProductCategoryName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("productAttr", getProductAttr())
            .toString();
    }
}
